package android.vstore.util;


import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.vstore.util.RestClient.RequestMethod;


public class GetUrlMethod {
	public static JSONArray json_array;
	public static JSONObject json;
	static String[] values;

	public static String postRequest(String Url) {
		System.out.println("url =" + Url);
		RestClient client = new RestClient(Url);
		String response = new String();
		try {
			client.Execute(RequestMethod.POST);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		response = client.getResponse();
		if(response != null)
		{
//			System.out.println("response =" + response);
			try {
				json_array = new JSONArray();
				json_array = new JSONArray(response);

			} catch (JSONException e) {
				// TODO Auto-generated catch block
//				System.out.println(e.toString());
			}
		}
		return response;
	}



}
